/**
 * 项目名：化工企业安全生产信息化管理平台
 * 日期：    2020-07-26 17:45:29
 * Copyright (c) 2015- -版权所有
 */
package com.joysuch.wwyt.bp.service;

import com.joysuch.wwyt.bp.entity.BpDeviceFacilityRepairRecord;

import com.joysuch.wwyt.bp.bean.BpDeviceFacilityRepairRecordDetailBean;
import com.joysuch.wwyt.bp.bean.BpDeviceFacilityRepairRecordEditBean;
import com.joysuch.wwyt.bp.bean.BpDeviceFacilityRepairRecordListBean;
import static com.joysuch.wwyt.bp.bean.BpDeviceFacilityRepairRecordListBean.SearchBpDeviceFacilityRepairRecord;
import com.joysuch.wwyt.core.exception.BusinessRestrictionsException;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

public interface BpDeviceFacilityRepairRecordService {

    public BpDeviceFacilityRepairRecord add(BpDeviceFacilityRepairRecordEditBean entity);

    void update(BpDeviceFacilityRepairRecordEditBean entity);

    Page<BpDeviceFacilityRepairRecordListBean> findByPage(Pageable page,SearchBpDeviceFacilityRepairRecord condition);

    void delete(Long id) throws BusinessRestrictionsException;

    BpDeviceFacilityRepairRecordDetailBean getById(Long id);

    BpDeviceFacilityRepairRecord findById(Long id);

    void deleteById(Long recordId);
}
